﻿using System.Collections.Generic;

namespace JinYuan.VirtualDataLibrary
{
    public class MesConfig
    {
        /// <summary>
        /// 工厂代码
        /// </summary>
        public string siteCode = "";
        /// <summary>
        /// 产线编号
        /// </summary>
        public string lineCode = "";
        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipNum = "";
        /// <summary>
        /// MES密码
        /// </summary>
        public string mesPwd = "";
        /// <summary>
        /// MES账户
        /// </summary>
        public string mesUserName = "";

        /// <summary>
        /// 电表编号
        /// </summary>
        public List<string> electricMeterNum = new List<string>();

        /// <summary>
        /// 风速仪个数
        /// </summary>
        public int AntiDustAirSpeedCount = 0;
        /// <summary>
        /// 风速仪编号
        /// </summary>
        public List<string> listAntiDustAirSpeedNum = new List<string>();

        /// <summary>
        /// 权限
        /// </summary>
        public string userLevel = "";
        /// <summary>
        /// mes返回权限
        /// </summary>
        public string mesUserLevel = "";
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode = "";
        /// <summary>
        /// 生产型号
        /// </summary>
        public string ModelName = "";
        /// <summary>
        /// 是否上传MES
        /// </summary>
        public bool isUpMes = false;
        /// <summary>
        /// MES接口URL地址中的IP地址
        /// </summary>
        public string MESURLAddressIP = "10.100.111.81";
        /// <summary>
        /// MES接口URL地址中的端口号
        /// </summary>
        public string MESURLAddressPort = "80";
        /// <summary>
        /// 是否连接MES
        /// </summary>
        public bool isConnected = false;
        /// <summary>
        /// 是否刷卡？
        /// </summary>
        public bool Isshuaka = false;
        /// <summary>
        /// 是否登录成功？
        /// </summary>
        public bool IsLoginOK = false;
        /// <summary>
        /// 是否登录MES成功？
        /// </summary>
        public bool IsLoginMesOK = false;
        /// <summary>
        /// 获取MES参数
        /// </summary>
        public bool IsMesParam = false;
        /// <summary>
        /// MES超时
        /// </summary>
        public long MesOutTime = 0;
        /// <summary>
        /// 焊接点个数
        /// </summary>
        public int weldNum = 0;
        /// <summary>
        /// 是否2个电表(此功能仅适用于908-6负极焊接两台设备共用一台敢接机只有一个电表)
        /// </summary>
        public bool IsTwoDianBiao = false;
        /// <summary>
        /// 电表编号
        /// </summary>
        public string ElectricMeterNum = "";
        /// <summary>
        /// 除尘风速
        /// </summary>
        public decimal antiDustAirSpeed = 0;

        /// <summary>
        /// 电机旋转速度
        /// </summary>
        public decimal dianjiXzSpeed = 0;
        /// <summary>
        /// 设备状态上传时间
        /// </summary>
        public int EquStatuasTime = 0;
        /// <summary>
        /// 获取服务器数据
        /// </summary>
        public bool IsGet_Server = true;
        /// <summary>
        /// 生成假数据
        /// </summary>
        public bool IsDebug = true;
        /// <summary>
        /// 卷芯码计数
        /// </summary>
        public int CoreCount = 0;
        /// <summary>
        /// 钢壳码计数
        /// </summary>
        public int SteelshellCount = 0;
        /// <summary>
        /// 原材料上料位置
        /// </summary>
        public string materialLotCodeLocator = "";
        /// <summary>
        /// 存储服务器IP地址
        /// </summary>
        public string RotueServerIP = "192.168.2.108";
        /// <summary>
        /// 员工权限校验
        /// </summary>
        public string EmployeeAuthCheck = "http://10.100.111.81/core/api/public/equipment/base/user/permission/verify";
        /// <summary>
        /// 原材料投入信息
        /// </summary>
        public string MaterialInputInfo = "http://10.100.111.81/core/api/public/raw/material/input/un/first/process";
        /// <summary>
        /// 设备参数设定值请求
        /// </summary>
        public string DeviceParamRequest = "http://10.100.111.81/core/api/public/param/setting/request";
        /// <summary>
        /// 设备参数设定值变更
        /// </summary>
        public string DeviceParamChange = "http://10.100.111.81/core/api/public/param/setting/change";
        /// <summary>
        /// 产品进站信息（组装）
        /// </summary>
        public string ProductInStation = "http://10.100.111.81/core/api/public/batch/in/station/process/currency";
        /// <summary>
        /// 产品过程加工参数
        /// </summary>
        public string ProductProcessParams = "http://10.100.111.81/core/api/public/product/process/param/new/process";
        /// <summary>
        /// 产品结果加工参数
        /// </summary>
        public string ProductResultParams = "http://10.22.160.141/core/api/public/product/process/param/new/result";
        /// <summary>
        /// 产品出站信息（组装）
        /// </summary>
        public string ProductOutStation = "http://10.22.160.141/core/api/public/eve/pm/formation-section";
        /// <summary>
        /// 设备报警信息
        /// </summary>
        public string DeviceAlarm = "http://10.100.111.81/core/api/public/equipment/alarm/currency";
        /// <summary>
        /// 设备运行状态
        /// </summary>
        public string DeviceStatus = "http://10.100.111.81/core/api/public/eve/pm/eqm/run/status/operation";
        /// <summary>
        /// 能耗数据
        /// </summary>
        public string EnergyConsumption = "http://10.100.111.81/core/api/public/eve/pm/energy/consumption/collection/submit";
        /// <summary>
        /// 设备风速接口
        /// </summary>
        public string Anemometer = "https://iot.eveportal.com:9470/eve_api/ems/iot/upload_device_collect_data";

        /// <summary>
        /// 进出站一体模式×
        /// </summary>
        public string InAndOutStationMesUrl = "http://10.17.96.73/core/api/public/14j/out/station/process/turn-in-out";

    }
}
